home *** CD-ROM | disk | FTP | other *** search
/ An Invitation to the Roland World of Music / Roland - An Invitation To The Roland World Of Music.bin / vb / artic / vbx-fact / vb-alpha.frm < prev    next >
Text File  |  1995-05-29  |  9KB  |  329 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    Caption         =   "Alphabets - Visual Basic"
  4.    ClientHeight    =   4230
  5.    ClientLeft      =   1095
  6.    ClientTop       =   1485
  7.    ClientWidth     =   4200
  8.    Height          =   4635
  9.    Left            =   1035
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   4230
  12.    ScaleWidth      =   4200
  13.    Top             =   1140
  14.    Width           =   4320
  15.    Begin ALPHA ALPHA1 
  16.       Left            =   450
  17.       Top             =   3570
  18.    End
  19.    Begin Frame Frame1 
  20.       Caption         =   "Flags"
  21.       Height          =   1095
  22.       Left            =   240
  23.       TabIndex        =   27
  24.       Top             =   2160
  25.       Width           =   3735
  26.       Begin OptionButton rbSYNC 
  27.          Caption         =   "SND_SYNC"
  28.          Height          =   255
  29.          Left            =   1920
  30.          TabIndex        =   30
  31.          Top             =   720
  32.          Value           =   -1  'True
  33.          Width           =   1695
  34.       End
  35.       Begin OptionButton rbASYNC 
  36.          Caption         =   "SND_ASYNC"
  37.          Height          =   255
  38.          Left            =   1920
  39.          TabIndex        =   29
  40.          Top             =   360
  41.          Width           =   1695
  42.       End
  43.       Begin CheckBox cbLOOP 
  44.          Caption         =   "SND_LOOP"
  45.          Height          =   255
  46.          Left            =   120
  47.          TabIndex        =   28
  48.          Top             =   360
  49.          Width           =   1455
  50.       End
  51.    End
  52.    Begin CommandButton EndButton 
  53.       Caption         =   "End"
  54.       Height          =   375
  55.       Left            =   1560
  56.       TabIndex        =   26
  57.       Top             =   3480
  58.       Width           =   1095
  59.    End
  60.    Begin CommandButton Command1 
  61.       Caption         =   "Z"
  62.       Height          =   375
  63.       Index           =   25
  64.       Left            =   720
  65.       TabIndex        =   25
  66.       Top             =   1680
  67.       Width           =   375
  68.    End
  69.    Begin CommandButton Command1 
  70.       Caption         =   "Y"
  71.       Height          =   375
  72.       Index           =   24
  73.       Left            =   240
  74.       TabIndex        =   24
  75.       Top             =   1680
  76.       Width           =   375
  77.    End
  78.    Begin CommandButton Command1 
  79.       Caption         =   "X"
  80.       Height          =   375
  81.       Index           =   23
  82.       Left            =   3600
  83.       TabIndex        =   23
  84.       Top             =   1200
  85.       Width           =   375
  86.    End
  87.    Begin CommandButton Command1 
  88.       Caption         =   "W"
  89.       Height          =   375
  90.       Index           =   22
  91.       Left            =   3120
  92.       TabIndex        =   22
  93.       Top             =   1200
  94.       Width           =   375
  95.    End
  96.    Begin CommandButton Command1 
  97.       Caption         =   "V"
  98.       Height          =   375
  99.       Index           =   21
  100.       Left            =   2640
  101.       TabIndex        =   21
  102.       Top             =   1200
  103.       Width           =   375
  104.    End
  105.    Begin CommandButton Command1 
  106.       Caption         =   "U"
  107.       Height          =   375
  108.       Index           =   20
  109.       Left            =   2160
  110.       TabIndex        =   20
  111.       Top             =   1200
  112.       Width           =   375
  113.    End
  114.    Begin CommandButton Command1 
  115.       Caption         =   "T"
  116.       Height          =   375
  117.       Index           =   19
  118.       Left            =   1680
  119.       TabIndex        =   19
  120.       Top             =   1200
  121.       Width           =   375
  122.    End
  123.    Begin CommandButton Command1 
  124.       Caption         =   "S"
  125.       Height          =   375
  126.       Index           =   18
  127.       Left            =   1200
  128.       TabIndex        =   18
  129.       Top             =   1200
  130.       Width           =   375
  131.    End
  132.    Begin CommandButton Command1 
  133.       Caption         =   "R"
  134.       Height          =   375
  135.       Index           =   17
  136.       Left            =   720
  137.       TabIndex        =   17
  138.       Top             =   1200
  139.       Width           =   375
  140.    End
  141.    Begin CommandButton Command1 
  142.       Caption         =   "Q"
  143.       Height          =   375
  144.       Index           =   16
  145.       Left            =   240
  146.       TabIndex        =   16
  147.       Top             =   1200
  148.       Width           =   375
  149.    End
  150.    Begin CommandButton Command1 
  151.       Caption         =   "P"
  152.       Height          =   375
  153.       Index           =   15
  154.       Left            =   3600
  155.       TabIndex        =   15
  156.       Top             =   720
  157.       Width           =   375
  158.    End
  159.    Begin CommandButton Command1 
  160.       Caption         =   "O"
  161.       Height          =   375
  162.       Index           =   14
  163.       Left            =   3120
  164.       TabIndex        =   14
  165.       Top             =   720
  166.       Width           =   375
  167.    End
  168.    Begin CommandButton Command1 
  169.       Caption         =   "N"
  170.       Height          =   375
  171.       Index           =   13
  172.       Left            =   2640
  173.       TabIndex        =   13
  174.       Top             =   720
  175.       Width           =   375
  176.    End
  177.    Begin CommandButton Command1 
  178.       Caption         =   "M"
  179.       Height          =   375
  180.       Index           =   12
  181.       Left            =   2160
  182.       TabIndex        =   12
  183.       Top             =   720
  184.       Width           =   375
  185.    End
  186.    Begin CommandButton Command1 
  187.       Caption         =   "L"
  188.       Height          =   375
  189.       Index           =   11
  190.       Left            =   1680
  191.       TabIndex        =   11
  192.       Top             =   720
  193.       Width           =   375
  194.    End
  195.    Begin CommandButton Command1 
  196.       Caption         =   "K"
  197.       Height          =   375
  198.       Index           =   10
  199.       Left            =   1200
  200.       TabIndex        =   10
  201.       Top             =   720
  202.       Width           =   375
  203.    End
  204.    Begin CommandButton Command1 
  205.       Caption         =   "J"
  206.       Height          =   375
  207.       Index           =   9
  208.       Left            =   720
  209.       TabIndex        =   9
  210.       Top             =   720
  211.       Width           =   375
  212.    End
  213.    Begin CommandButton Command1 
  214.       Caption         =   "I"
  215.       Height          =   375
  216.       Index           =   8
  217.       Left            =   240
  218.       TabIndex        =   8
  219.       Top             =   720
  220.       Width           =   375
  221.    End
  222.    Begin CommandButton Command1 
  223.       Caption         =   "H"
  224.       Height          =   375
  225.       Index           =   7
  226.       Left            =   3600
  227.       TabIndex        =   7
  228.       Top             =   240
  229.       Width           =   375
  230.    End
  231.    Begin CommandButton Command1 
  232.       Caption         =   "G"
  233.       Height          =   375
  234.       Index           =   6
  235.       Left            =   3120
  236.       TabIndex        =   6
  237.       Top             =   240
  238.       Width           =   375
  239.    End
  240.    Begin CommandButton Command1 
  241.       Caption         =   "F"
  242.       Height          =   375
  243.       Index           =   5
  244.       Left            =   2640
  245.       TabIndex        =   5
  246.       Top             =   240
  247.       Width           =   375
  248.    End
  249.    Begin CommandButton Command1 
  250.       Caption         =   "E"
  251.       Height          =   375
  252.       Index           =   4
  253.       Left            =   2160
  254.       TabIndex        =   4
  255.       Top             =   240
  256.       Width           =   375
  257.    End
  258.    Begin CommandButton Command1 
  259.       Caption         =   "D"
  260.       Height          =   375
  261.       Index           =   3
  262.       Left            =   1680
  263.       TabIndex        =   3
  264.       Top             =   240
  265.       Width           =   375
  266.    End
  267.    Begin CommandButton Command1 
  268.       Caption         =   "C"
  269.       Height          =   375
  270.       Index           =   2
  271.       Left            =   1200
  272.       TabIndex        =   2
  273.       Top             =   240
  274.       Width           =   375
  275.    End
  276.    Begin CommandButton Command1 
  277.       Caption         =   "B"
  278.       Height          =   375
  279.       Index           =   1
  280.       Left            =   720
  281.       TabIndex        =   1
  282.       Top             =   240
  283.       Width           =   375
  284.    End
  285.    Begin CommandButton Command1 
  286.       Caption         =   "A"
  287.       Height          =   375
  288.       Index           =   0
  289.       Left            =   240
  290.       TabIndex        =   0
  291.       Top             =   240
  292.       Width           =   375
  293.    End
  294. End
  295.  
  296. Sub Command1_Click (Index As Integer)
  297.     Dim Flags As Integer
  298.  
  299.     Flags = 0
  300.  
  301.     If rbSYNC = True Then
  302.         Flags = Flags Or 0  ' 0 = SND_SYNC
  303.     End If
  304.  
  305.     If rbASYNC = True Then
  306.         Flags = Flags Or 1  ' 1 = SND_ASYNC
  307.     End If
  308.     
  309.     If cbLOOP = 1 Then
  310.         Flags = Flags Or 8  ' 8 = SND_LOOP
  311.     End If
  312.     
  313.     Alpha1.Flags = Flags
  314.     Alpha1.Play = Index     ' sound is pick from button index
  315. End Sub
  316.  
  317. Sub EndButton_Click ()
  318.     Alpha1.Flags = 0
  319.     Alpha1.Play = -1 'Turn off any sounds before leaving
  320.     End
  321. End Sub
  322.  
  323. Sub Form_Unload (Cancel As Integer)
  324.     Alpha1.Flags = 0
  325.     Alpha1.Play = -1 'Turn off any sounds before leaving
  326.     End
  327. End Sub
  328.  
  329.